using Gateway.Common.Entity;

namespace Gateway.Domain.Entities;

/// <summary>
/// 工作流
/// </summary>
public class WorkFlow : AggregateRootEntityBase
{
    /// <summary>
    /// 工作流名称
    /// </summary>
    public string WorkFlowName { get; private set; }

    /// <summary>
    /// 工作流编码
    /// </summary>
    public string WorkFlowCode { get;private set; }


    public WorkFlow()
    {
    }

    public WorkFlow(string workFlowName = default, string workFlowCode = default)
    {
        this.WorkFlowName = workFlowName;
        this.WorkFlowCode = workFlowCode;
    }

    public void Update(string workFlowName = default, string workFlowCode = default)
    {
        this.WorkFlowName = workFlowName;
        this.WorkFlowCode = workFlowCode;
    }
}